<?php

ob_start();

$path = $_SERVER['REQUEST_URI'];

$base = substr($path, strrpos($path, '.'));

$file = str_replace('/agilet/static/', '', $path);

$arr = explode('/', $file);

$cache_dir = array_shift($arr);
$version = array_shift($arr);
$real = implode('/', $arr);

if ($base == '.js')
{
	header('Content-Type:	application/x-javascript; charset=utf-8');
}
else
if ($base == '.css')
{
	header('Content-Type:		text/css; charset=utf-8');
}

echo $file;
